package com.dd.ent.car.common.player;

/**
 * Author:LiuJianSheng
 * Date:2016/7/27
 */
public class SetDataSourceAndPrepareMessage extends PlayerMessage {
    private String mPath;

    public SetDataSourceAndPrepareMessage(MediaPlayerWrapper mediaPlayer, String path) {
        super(mediaPlayer);
        this.mPath = path;
    }

    @Override
    public void runMessage() {
        getMediaPlayer().setDataSource(mPath);
        getMediaPlayer().prepare();
    }
}
